package com.explorati.interview.interview.chaptereight;

public class Test {

	public static void main(String[] args) {
		Thread thread1 = new ThreadTest();

		Thread thread2 = new Thread(new RunnableTest());

		try {
			thread1.start();
			thread2.join();

			thread1.sleep(1000);
			thread2.start();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}

	}
}
